
UserName = input('请输入用户名\n')
PassWord = input('请输入密码\n')
if UserName == 'zuo':
    if PassWord == '123456':
        print('登录成功')
    else:
        print('密码错误')
else:
    if PassWord == '123456':
        print('用户名错误')
    else:
        print("用户名、密码错误")

UserName = input('请输入用户名\n')
PassWord = input('请输入密码\n')
if UserName == 'zuo' and PassWord == '123456':
    print('登录成功')
elif UserName == 'zuo' and PassWord != '123456':
    print('密码错误')
elif UserName != 'zuo' and PassWord == '123456':
    print('账号错误')
else:
    print('账号、密码错误')

import random
player = int(input("请输入石头（1）、剪刀（2）、布（3）\n"))
computer = random.randint(1, 3)
if player != (1, 3):
    print("输入不正确，请重新输入")
elif (player == 1 and computer == 2) or (player == 2 and computer == 3) or (player == 3 and computer == 1):
    print('玩家出的是：%d 电脑出的是：%d，玩家获胜' % (player, computer))
elif computer == player:
    print('玩家出的是：%d 电脑出的是：%d，平均' % (player, computer))
else:
    print('玩家出的是：%d 电脑出的是：%d，电脑获胜' % (player, computer))



